<?php
ini_set('display_errors','1'); ini_set('display_startup_errors','1');  
include_once(ROOT_PATH."classes/dao/imgproducts.class.php");
$imgproducts = new imgProducts();
$templateFile = "khuyenmaidetail.tpl.html";
$id = $request->element('id','');
$slug = $request->element('slug','');
if($slug!='' && $id != ''){
	$khuyenmaiItem= $imgproducts->getObject($id);
	 $template->assign('khuyenmaiItem',$khuyenmaiItem);
}
$right=0;
 $template->assign('right',$right);
#dung chung
include_once(ROOT_PATH."modules/framework.module.php");
# active
$pageName="Khuyến mãi giảm giá";
 $active='san-pham';
 $template->assign('active',$active);
  $template->assign('pageName',$pageName);
?>